#if !defined(AFX_SETTHRESHOLD_H__BD371EB3_2CCD_4A55_B08C_913BA5A648BA__INCLUDED_)
#define AFX_SETTHRESHOLD_H__BD371EB3_2CCD_4A55_B08C_913BA5A648BA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "NumSpinCtrl.h"
// SetThreshold.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CSetThreshold dialog

class CSetThreshold : public CDialog
{
// Construction
public:
	bool m_bApplay;
	CSetThreshold(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CSetThreshold)
	enum { IDD = IDD_THRESHOLD };
	CNumSpinCtrl	m_spinMedianThreshold;
	CNumSpinCtrl	m_spinMotion;
	CNumSpinCtrl	m_spinPole;
	int				m_iMotion_val;
	int				m_iPole_val;
	int				m_iSpeed_val;
	UINT			m_iMedianThreshold;
	BOOL			m_bCheckMedian;
	BOOL			m_bLimitMotionToObjects;
	BOOL			m_bEnableFrequencyTrigger;
	BOOL			m_bEnableProximityTrigger;
	long			m_lFreqSNRThreshold;
	long			m_lFrequencyBandpassLow;
	long			m_lFrequencyBandpassHigh;
	CString			m_csTrackingOutputCh1;
	CString			m_csEventTriggerCh;
	CString			m_csEventTriggerDev;
	CString			m_csIndicatorTriggerINCh;
	BOOL			m_bDetectMotion;
	//}}AFX_DATA

	afx_msg void OnStnClickedPoleex();
	afx_msg void OnDeltaposSpinPole(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnStnClickedPoleTextMedianBoxcar();
	afx_msg void OnStnClickedMotionText();
	afx_msg void OnBnClickedPole();
	WINDOWPLACEMENT m_lpwndpl;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSetThreshold)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CSetThreshold)
	virtual BOOL OnInitDialog();
	afx_msg void OnUpdateEdit();
	afx_msg void OnChangeEDITPole();
	afx_msg void OnApply();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	
public:
	afx_msg void OnDeltaPosSpinMotion(NMHDR *pNMHDR, LRESULT *pResult);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SETTHRESHOLD_H__BD371EB3_2CCD_4A55_B08C_913BA5A648BA__INCLUDED_)
